package com.cih.app.gui.annotation;

import java.lang.reflect.Method;
 
public class TestMain {
	public static void main(String[] args) throws Exception {
		Class<?> clazz=null;
		clazz=Class.forName("com.annotation.SimpleMain");
		Method method = clazz.getMethod("toString");
		if (method.isAnnotationPresent(SimpleAnnotation.class)) {
			SimpleAnnotation me = method.getAnnotation(SimpleAnnotation.class);
			System.out.println(me.key());
			System.out.println(me.value());
			
		}
		
	}
}
